import request from '@/utils/request'

export default {
    info: async () => await request.get('/principal/info', 'get'),
    add: async (opts) => await request.post('/principal', opts),
    getList: async (cond) => await request.get('/principal/list', { params: cond }),
    getDetail: async (id) => await request.get('/principal?id=' + id),
    put: async (id, opts) => await request.put('/principal?id=' + id, opts),
}